package thread;

import java.util.Scanner;
import java.util.concurrent.CountDownLatch;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25397
 * Date: 2022-04-08
 * Time: 20:48
 */
public class Demo31 {
//    public static void main(String[] args) throws InterruptedException {
//        CountDownLatch latch=new CountDownLatch(10);
//        for(int i=0;i<10;i++){
//            Thread t=new Thread(() ->{
//                try {
//                    Thread.sleep(3000);
//                    System.out.println(Thread.currentThread().getName()+"我已到达终点");
//                    latch.countDown();
//                } catch (InterruptedException e) {
//                    e.printStackTrace();
//                }
//            });
//            t.start();
//        }
//
//        //等待所有线程到达
//        latch.await();//当这些线程没有全执行完，await就阻塞，所有线程都执行完了，await才返回
//
//        System.out.println("所有线程已全部执行完毕");
//    }

    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
         long n=scanner.nextLong();
         long t=n/1000;
         long h=(t/3600)%24;
         long m=(t%3600)/60;
         long s=(t%3600)%60;
        System.out.println(h+":"+m+":"+s);

    }
}
